package org.example.chapter8.protocol.response;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.chapter8.protocol.Packet;

import java.util.List;

import static org.example.chapter8.protocol.command.Command.CREATE_GROUP_RESPONSE;

@EqualsAndHashCode(callSuper = true)
@Data
public class CreateGroupResponsePacket extends Packet {

    private boolean success;

    private String groupId;

    private List<String> usernameList;

    @Override
    public Byte getCommand() {
        return CREATE_GROUP_RESPONSE;
    }
}
